home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
porttool.zoo
/
mv.man
< prev
next >
Wrap
Text File
|
1992-12-03
|
2KB
|
43 lines
NNAAMMEE
mv - move files
SSYYNNOOPPSSIISS
mmvv [ _-_f_h_i ] _f_i_l_e_1 _f_i_l_e_2
mmvv [ _-_f_h_i ] _f_i_l_e ... _d_i_r_e_c_t_o_r_y
In the first form, if _f_i_l_e_2 already exists, it is removed before
_f_i_l_e_1 is moved. If _f_i_l_e_2 has a mode which prohibits writing (refer
to cchhmmoodd(1)), mmvv announces this fact and waits for standard input.
If a yy is entered then mmvv continues, otherwise mmvv exits.
In the second form, one or more files are moved to a specified
directory. They keep their original file names.
DDEESSCCRRIIPPTTIIOONN
mmvv moves (renames) files. This is done either by changing the name
of the entry, or by copying and deleting.
OOPPTTIIOONNSS
--ff Overrides any mode restrictions or the --ii switch.
--hh Display a short help message.
--ii Specifies the interactive mode. When a move will supercede an
existing file, mmvv --ii prompts with the name of the file, followed
by a question mark. If a line beginning with the letter yy is
entered, the move proceeds; any other reply prevents the move
from occurring. The prompt may also be answered by redirecting
a file containing the desired answer to the mmvv command, as in
the following example:
C:> mmvv --ii ffiillee11 ffiillee22 << ffiillee33
Also, if the --ii option is used within a batch file, the prompt
may be answered by echo'ing a response into mmvv, as in the
following example:
C:> eecchhoo yy || mmvv --ii ffiillee11 ffiillee22
CCooppyyrriigghhtt ((cc)) 11999922 FFrraannkk EE.. WWhhaalleeyy AAllll rriigghhttss rreesseerrvveedd